import React from 'react';
import ReactDOM from 'react-dom';
import Spin from '../components/spin';
export function addSpin() {
  const dom = document.createElement('div');
  dom.setAttribute('id', 'loading');
  document.body.appendChild(dom);
  ReactDOM.render(<Spin />, dom);
}
export function removeSpin() {
  document.body.removeChild(document.getElementById('loading'));
}
